package com.bac.utils;


import com.bac.bacplatform.R;

import android.annotation.SuppressLint;
import android.app.Activity;

/**
 * 页面跳转动画
 * @author Administrator
 *
 */
@SuppressLint("NewApi")
public class ActivityAnimator {
	/**
	 * 层叠效果-进入
	 * 
	 * @param a
	 */
	public void stackAnimation(Activity a) {
		a.overridePendingTransition(R.anim.slide_right_in, R.anim.slide_left_out);
	}

	/**
	 * 层叠效果-退出
	 * 
	 * @param a
	 */
	public void stackBackAnimation(Activity a) {
		a.overridePendingTransition(R.anim.slide_left_in, R.anim.slide_right_out);
	}

}
